package com.yonyou.ucf.mdf.app.isvdxq.firstpart.location.service;

import com.yonyou.ucf.mdf.app.isvdxq.firstpart.location.entity.OrderStoreDetailEntity;
import com.yonyou.ucf.mdf.app.isvdxq.firstpart.location.mapper.OrderStoreDetailMapperImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrderStoreDetailService {
    @Autowired
    private OrderStoreDetailMapperImpl orderStoreDetailMapper;

    public OrderStoreDetailEntity selectById(Integer id){
        return orderStoreDetailMapper.selectByPrimaryKey(id);
    }

    public int EditFlagByMainId(String Id){
        return orderStoreDetailMapper.editEntityFlagByMainId(Id);
    }
    public int EditFlagByStoreId(String Id){
        return orderStoreDetailMapper.editEntityFlagByStoreId(Id);
    }

    public int insertSelective(OrderStoreDetailEntity record) {
        return orderStoreDetailMapper.insertSelective(record);
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table NewTable
     *
     * @mbg.generated Mon Mar 07 07:40:31 UTC 2022
     */
    public int updateByPrimaryKeySelective(OrderStoreDetailEntity record) {
        return orderStoreDetailMapper.updateByPrimaryKeySelective(record);
    }

    public List<OrderStoreDetailEntity> selectByOrderId(String orderId){
        return orderStoreDetailMapper.selectByOrderId(orderId);
    }

    public boolean AutoDataInByOrderId(String token, String orderId){
        boolean res = false;
        return res;
    }
    public boolean AutoDataOutByOrderId(String token, String orderId){
        boolean res = false;
        return res;
    }
}
